const express = require('express');
// 引入路由
const router = require('./router/user');

const app = express();

// 使用路由
app.use(router);

// 挂载静态资源
app.use(express.static('web'));
app.listen(8080, () => {
    console.log('http://localhost:8080')
});